import zlib
import base64

"""
脚本: TCL+小程序自动兑E卡
作者: 3iXi
创建日期: 2025-04-18
描述: 先开启抓包，再打开“TCL+”小程序，抓域名https://cn.account.tcl.com/auth/thirdParty/loginByAuthCode 响应数据中的refreshToken和accountId
环境变量：无环境变量，需要在“tcl.json”中填入refreshToken和accountId
需要依赖：httpx[http2] pycryptodome
"""

exec(zlib.decompress(base64.b64decode(f"eJztW/tT1Fj2/90q/4dsrFm61+6mG2hEvt/eLV6jrIooON/x61ip0J2GjN1JTNIKQ1EFjrwUxFGc8YEPZnztrAKOliCIVO2fstVJNz/N/Al77r1J+ubBw53d2tqtTVFAcu8959xzzv2cc89N9v2muqCp1T2iVC1IFxhlQO+Tpdq9e/Yx0d9FmbScEaXeRqagZ6MN6MnePXv3iHlFVnVG1px/v9RkybnRxbzg3GR4XXA9KKi5nNgTU3hVqzzU+1SBR5ycJyovZeT83j1ZVc6DFFK6oKqCpMeyBb2gChpjdevGAztlOdfWL6QLuqw6FPp0Xem3CLSoA4ouxzoLPTkxfUQYsIef7Gpy92gRlT5BtZs7j7R0JbgLCS7pUO3hNaG+DmlhHxptXHlkLI4Z4+vmraW9ezJCllE1nhOkNCIX0oV+PcIomCt3ThjgNF0NN+7dw8C1jzEW3xmjLzZvPClv3CvPTxmPL5euj/38fspcXkNkH78xlj6QvmKWkWTdQyim6byqaxdFvS9UFUVXc9uh9g6m81Tz0fYW5kjbafywymaILjcFJsVsM/ALqYrZ7x2xn6n6QsLNbR2tPlaEkTO/K4/K6+tkiuRZhRiwBu3FiFLBICGPkmwaxfWN0uzzih0sVWGtkz5pYrEUZayYJFykCIYpgWAYWMqcXiDPLEMJGQ78lAcihFqMNiC6kTNCqAqvgaqwQ64Zu0Lp/belRyPkmSqAc0qWj8R66uusoW424VhGcFEk3mQrqrvlKEcUy4FiQSb2WPuh7LGm+KGWrvOHutp7altPtDU3nTjV1FR3qKOptaVZPHGkufdE69FCS1O//lnieL5Qk6g//mnmdFypGVA6Tx5V9Jx8tPf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